function showBarIndex() {
    var username = document.getElementsByName('username').item(0).value;
    var password = document.getElementsByName('password').item(0).value;
    if (username != null && password != null && username !== '' && password !== '') {
        showBar();
    }
}